<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@include file="/header.jsp" %>

<div class="row">
    <%@include file="order_left_nav.jsp"%>
    <div class="col-md-10 ">
        <table class="table table-striped" id="order_tab" style="text-align: left">
            <thead>
            <tr>
                <th>下单时间</th>
                <th>订单编号</th>
                <th>商品图片</th>
                <th>商品名称</th>
                <th>商品规格</th>
                <th>订单状态</th>
                <th>单价</th>
                <th>数量</th>
                <th>运费</th>
                <th>实付款</th>
                <th>交易操作</th>
            </tr>
            </thead>
            <tbody id="order_tbody">
            <c:forEach items="${orderList}" var="ol">
                <tr id="">

                    <td hidden>${ol.orderId}</td>
                    <td>${ol.orderDate}</td>
                    <td>${ol.orderCode}</td>

                    <td><img src="${pageContext.request.contextPath}/${ol.goodsPic}"
                             style="width: 40px;height: 30px"></td>
                    <td>${ol.goodName}</td>
                    <td>${ol.contentName}</td>
                    <td>
                        <c:if test="${ol.orderStatus == 0}">待支付</c:if>
                        <c:if test="${ol.orderStatus == 1}">待发货</c:if>
                        <c:if test="${ol.orderStatus == 2}">已发货</c:if>
                    </td>
                    <td>${ol.goodsPrice}</td>
                    <td>${ol.orderSales}</td>
                    <td>${ol.goodsPostalfee}</td>
                    <td>${ol.orderPrice}</td>
                    <td>
                        <a href="${pageContext.request.contextPath}/order/orderDetail?orderId=${ol.orderId}">订单详情</a>
                        <c:if test="${ol.orderStatus == 0}"><a href="${pageContext.request.contextPath}/order/toPay.action?orderId=${ol.orderId}">支付</a> </c:if>
                    </td>
                </tr>
            </c:forEach>

            </tbody>
        </table>
    </div>

</div>

<script>
    function handle() {

    }
</script>
